package itbour.onetouchshow.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import com.andview.refreshview.XRefreshView;
import com.andview.refreshview.callback.IFooterCallBack;

import itbour.onetouchshow.R;

/**
 * Created by Yang on 2018/3/2.
 */

public class GoToMovieFooterView extends LinearLayout implements IFooterCallBack {
    public GoToMovieFooterView(Context context) {
        super(context);
        initView(context);
    }

    public GoToMovieFooterView(Context context, AttributeSet attrs) {
        super(context, attrs);
        initView(context);
    }

    private void initView(Context context) {
        ViewGroup moreView = (ViewGroup) LayoutInflater.from(context).inflate(R.layout.view_go_to_play_movie, this);
        moreView.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT));
    }

    @Override
    public void callWhenNotAutoLoadMore(XRefreshView xRefreshView) {

    }

    @Override
    public void onStateReady(boolean mHasLoadComplete) {

    }

    @Override
    public void onStateRefreshing() {

    }

    @Override
    public void onReleaseToLoadMore() {

    }

    @Override
    public void onStateFinish(boolean hidefooter) {

    }

    @Override
    public void onStateComplete() {

    }

    @Override
    public void show(boolean show) {

    }

    @Override
    public boolean isShowing() {
        return true;
    }

    @Override
    public int getFooterHeight() {
        return getMeasuredHeight();
    }
}
